package jee.boot.entity.auth;

import com.google.common.collect.Lists;
import jee.boot.common.annotation.Column;
import jee.boot.common.annotation.Table;
import jee.boot.common.annotation.Transient;
import jee.boot.entity.system.BasicSbj;

import java.util.List;

/**
 * 角色
 */
@Table(name = "at_role")
public class Role extends BasicSbj<Role> {

    private static final long serialVersionUID = 1L;
    /**
     * 角色状态
     */
    @Column(name = "st_role_status")
    private String roleStatus;//字典：DIC_AUTH_RoleStatus


    /**
     * 原子权限
     */
    @Transient
    private List<Authority> authorityList = Lists.newArrayList();
	@Transient
	private List<User>userList=Lists.newArrayList();
	public Role() {
	}

	public Role(String id) {
		super(id);
	}

	public String getRoleStatus() {
		return roleStatus;
	}

	public void setRoleStatus(String roleStatus) {
		this.roleStatus = roleStatus;
	}

	public List<Authority> getAuthorityList() {
		return authorityList;
	}

	public void setAuthorityList(List<Authority> authorityList) {
		this.authorityList = authorityList;
	}

	public List<User> getUserList() {
		return userList;
	}

	public void setUserList(List<User> userList) {
		this.userList = userList;
	}
}
